package merchants;



import java.io.*;

public class MerchantDataRead {
    static MerchantDAOArrayList merchants = new MerchantDAOArrayList();
    public static void main()  {

        BufferedReader in;
        try {
            in = new BufferedReader(new InputStreamReader(new FileInputStream("卖家账号信息.txt"),"utf-8"));
            String line;
            while ((line = in.readLine())!=null){
                String[] temp = line.split(" ");
                Merchant m = new Merchant(temp[0],temp[1],temp[2]);
                merchants.addAccountData(m);
            }

        } catch (IOException e){
            e.printStackTrace();
        }

    }

    public  MerchantDAOArrayList getMerchants() {
        return merchants;
    }
}
